Login =  Dialog:DeriveClass("Login", "Main/Login.prefab",
{
} )

function Login:OnInit(args)
    Debugger.LogError("Login OnInit");
    Debugger.LogError("Vector3:"..tostring(Vector3.zero));

    local btn = self:GetGButton("Button1");
    btn:SetClickHandler(self, self.OnBtn1Click, nil);

    local btn = self:GetGButton("Button2");
    btn:SetClickHandler(self, self.OnBtn2Click, nil);
end

function Login:OnBtn1Click()
	Debugger.LogError("OnBtn1Click")
end

function Login:OnBtn2Click()
	Debugger.LogError("OnBtn2Click")
end